Example = function() {
	var layout;
	var eastLayout;
	return {
		init : function() {
			eastLayout = new YAHOO.ext.BorderLayout(document.getElementById('east'), {
				hideOnLayout: true,
				north: {
					split:false,
					initialSize: 150,
					maxSize: 200,
					collapsible: true,
					titlebar: false
				},
				west: {
					split:true,
					initialSize: 200,
					minSize: 175,
					maxSize: 400,
					titlebar: false,
					collapsible: true
				},
				east: {
					split:true,
					initialSize: 202,
					minSize: 175,
					maxSize: 400,
					titlebar: false,
					collapsible: true,
					tabPosition:'top'
				},
				south: {
					split:true,
					initialSize: 100,
					minSize: 100,
					maxSize: 200,
					titlebar: false,
					collapsible: true
				},
				center: {
					titlebar: false,
					autoScroll:false,
					tabPosition:'top'
				}
			});


			eastLayout.beginUpdate();
			eastLayout.add('north', new YAHOO.ext.ContentPanel('eastNorth', {closable:false}));
			eastLayout.add('south', new YAHOO.ext.ContentPanel('eastSouth', {title: 'South', closable: false}));
			eastLayout.add('center', new YAHOO.ext.ContentPanel('eastCenter', {title: 'Close Me', closable: false}));
			eastLayout.endUpdate();

			layout = new YAHOO.ext.BorderLayout(document.body, {
				hideOnLayout: true,
				north: {
					split:false,
					initialSize: 40,
					maxSize: 100,
					collapsible: true,
					titlebar: false
				},
				west: {
					split:true,
					initialSize: 200,
					minSize: 175,
					maxSize: 400,
					titlebar: false,
					collapsible: true
				},
				east: {
					split:true,
					initialSize: 202,
					minSize: 175,
					maxSize: 400,
					titlebar: false,
					collapsible: true,
					tabPosition:'top',
					autoscroll:true
				},
				south: {
					split:true,
					initialSize: 100,
					minSize: 100,
					maxSize: 200,
					titlebar: false,
					collapsible: true
				},
				center: {
					titlebar: false,
					autoScroll:true,
					tabPosition:'top'
				}
			});


			layout.beginUpdate();
			layout.add('north', new YAHOO.ext.ContentPanel('north', 'North'));
			// layout.add('south', new YAHOO.ext.ContentPanel('south', {title: 'South', closable: true}));
			layout.add('west', new YAHOO.ext.ContentPanel('west', {title: 'West'}));
			//					layout.add('east', new YAHOO.ext.ContentPanel('east', {title: 'Auto Tabs', closable: false}));
			layout.add('center', new YAHOO.ext.ContentPanel('center', {title: 'Close Me', closable: false}));

			layout.add('east', new YAHOO.ext.NestedLayoutPanel(eastLayout, {cloasable:false}));

			layout.getRegion('center').showPanel('center');
			layout.endUpdate();
		}
	}

}();
YAHOO.ext.EventManager.onDocumentReady(Example.init, Example, true);

